package com.kern.rpcclient;

import com.kern.rpc.bean.Student;
import com.kern.rpc.service.IStudentService;


/**
 *  客户端测试类
 * Created by caoshi at 21:01 2021-07-21
 */
public class RpcClientTestMain {

    public static void main(String[] args) {

        RpcClientProxy proxy = new RpcClientProxy();
        IStudentService studentService = proxy.getProxy(IStudentService.class);

        Student info = studentService.getInfo();
        System.out.println(info.getName());

    }


}
